//
//  MarkedSummaryListViewController.h
//  FleaFinder
//
//  Created by Hieu Le on 4/10/13.
//  Copyright (c) 2013 Kiwiweb. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MarketType.h"
#import "Category.h"
#import <dispatch/dispatch.h>
#import "AppDelegate.h"

@interface MarkedSummaryListViewController : UITableViewController<UITabBarControllerDelegate, UITableViewDataSource>
{
    AppDelegate *appDelegate;
    
    //NSMutableArray *currentData;
    //NSMutableArray *categoryList;
    
    //NSMutableDictionary *storage;
    //MarketType *selectedMarketType;
    NSMutableArray *marketSummaryList;
    
    //MarkedInfo* markedInfoViewController;
    
    //NSString *linkToCategoryList;
    //NSString* linkMarkedInfo;
    //NSString* linkTopMarkeders;
    
    BOOL isNotTopMarkederMode;
    
    //int timeIntervalInOneDay;
    
    //UIActivityIndicatorView *indicator;
    
    UIFont *font, *fontBold;
    UIFont *font12;
    UIColor *commonColor;
    UIColor *darkPurpleColor;
    
    dispatch_queue_t queueLoadNewMarket;
    
//    BOOL isViewAll;
}

@property NSMutableArray* categoryList;
///@property MarketType* selectedMarketType;
@property BOOL isNotTopMarkderMode;
//@property BOOL isViewAll;
@property NSMutableArray *marketSummaryList;
@property (weak, nonatomic) IBOutlet UITableView *marketSummaryListTableView;

-(void) loadXmlData: (NSString*) sourceUrl forMarketType:(MarketType*) marketType andCategory:(Category*) category;
-(void) loadXmlData: (NSString*) fromUrl isViewAll:(BOOL) viewAll;

-(void) startUpdateNewMarkets;

@end
